package com.lcf.system.entity;

import com.lcf.framework.model.BaseModel;
import com.lcf.system.enums.SysRoleEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 角色(SysRole)表实体类
 *
 * @author lcf
 * @since 2025-02-25 12:28:31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class SysRole extends BaseModel<SysRole> {
    //角色名称
    private String roleName;
    //角色编码
    private String roleCode;

    public SysRole(SysRoleEnum sysRoleEnum) {
        this.roleName = sysRoleEnum.getName();
        this.roleCode = sysRoleEnum.getCode();
    }
}

